<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<style type="text/css">
ul.rightTools {
	float: right;
	display: block;
}

ul.rightTools li {
	float: left;
	display: block;
	margin-left: 5px
}
</style>
<div class="pageContent" style="padding:3px">
	<div class="tabs">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span> <c:choose>
									<c:when test="${categoryStatus ==0}">
					工装材料类别
					</c:when>
									<c:otherwise>
					家装材料类别					
					</c:otherwise>
								</c:choose> </span>
					</a>
					</li>
					<li><a href="javascript:;"><span>导入</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent" layoutH="18">
			<div>
				<div layoutH="40" 
					style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:21px; background:#fff">
					<div class="panelBar">
						<ul class="toolBar">
							<li><a class="add"
								href="systemsetting/MaterialCategory_materialCategoryDetail?flag=${categoryStatus}&categoryStatus=${categoryStatus}"
								target="dialog" rel="tab2222" width="250" height="300"><span>添加</span>
							</a></li>
							<li><a title="确实要删除这些记录吗?" target="selectedTodo"
								rel="checkIds"
								href="systemsetting/MaterialCategory_materialCategoryDelete?b_T_Ufp_MaterialCategory.categoryStatus=${categoryStatus}"
								class="delete"><span>批量删除</span>
							</a>
							<li class="line">line</li>

						</ul>
					</div>
					<!-- 局部刷新 -->
					<div
						id="${categoryStatus ==0?'materialbuweiList':'materialbuweiListH'}"
						layoutH="67" overflow="hidden">
						<jsp:include page="materialbuweiList.jsp"></jsp:include>
					</div>
				</div>
				<div id="${categoryStatus ==0?'materialList':'materialListH'}"
					class="unitBox" style="margin-left:246px;">
					<jsp:include page="materialList.jsp"></jsp:include>
				</div>
			</div>
			<div>
	<form action="systemsetting/Material_materialImport?flag=${categoryStatus}" method="post" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this)" novalidate="novalidate">
	<div class="pageFormContent" layoutH="97">
		<dl>
			<dd><input type="file" id="myFile" name="myFile" size="30" /></dd>
		</dl>
		<dl>
			<dd><div class="buttonActive"><div class="buttonContent"><button type="submit">上传导入</button></div></dd>
			</form>
		</dl>
		<%-- <dl>
		<form action="systemsetting/Material_materialImport?flag=${categoryStatus}" method="post"   enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this)" novalidate="novalidate" >
			<dl>
			<dd><div class="buttonActive"><div class="buttonContent"><button  type="submit">导入</button></div></dd>
			</dl>
			</form>
		</dl> --%>
	</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
</div>
<script type="text/javascript">
	(function() {
		var iContentH = $(window).height() - $("#header").height() - 34;
		$("#container .tabsPageContent").height(iContentH - 34).find(
				"[layoutH]").layoutH();
	})();
</script>